package org.github.manx98.jlibhac.fssystem;

import org.github.manx98.jlibhac.fs.IStorage;

import java.io.IOException;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/3 21:33
 */
public class SparseStorage extends IndirectStorage {
    private final ZeroStorage zeroStorage;

    private class ZeroStorage extends IStorage {
        public ZeroStorage() {
            super(0);
            throw new UnsupportedOperationException("not implemented");
        }

        @Override
        public void read(long offset, byte[] destination, int destOffset, int len) throws IOException {

        }

        @Override
        public long getSize() {
            return 0;
        }
    }

    public SparseStorage() {
        this.zeroStorage = new ZeroStorage();
    }
}
